package com.xujicheng.designpattern.learn.simpleFactory;

/**
 * @project:design-pattern-learn
 * @package:com.xujicheng.designpattern.learn.simpleFactory
 * @author:xujicheng
 * @date:2018/8/7
 */
public class Customer {

    private static final PizzaStore pizzaStore = new PizzaStore(new SimplePizzaFactory());
    public static void main(String[] args) {
        System.out.println("消费者想购买一个披萨！");
        Pizza pizza = pizzaStore.orderPizza("veggie");
        if(pizza != null){
            System.out.println("消费者得到一个披萨！");
        }
    }
}
